package MTT::Form::Login;

use HTML::FormHandler::Moose;
extends 'HTML::FormHandler::Model::DBIC';
#with 'HTML::FormHandler::Render::Simple';
with 'HTML::FormHandler::Render::Table';
use namespace::autoclean;

use utf8;

has '+action' => ( default => '/login' );
has_field 'username' => ( type => 'Text', label => 'Имя пользователя' );
has_field 'password' => ( type => 'Password', label => 'Пароль' );
has_field 'submit' => ( type => 'Submit', value => 'Войти' );


__PACKAGE__->meta->make_immutable;
1;
